<?php
return [
    // 应用信息
    'app_info'              => [
        'app_name'          => 'HPCMS',
        'app_version'       => '1.0.0',
    ],
    // 文件上传
    'app_upload'            => [
        'file_key'          => 'file',
        'file_ext'          => 'zip,jpg,png',
        'file_size'         => 1024,
    ],
    "default_welcome_route" => 'hangpu8/Index/welcome',
    // 后台路由
    'routes'                => [
        [
            'url'           => '/hangpu8/v1.login',
            'namespace'     => '\hangpu8\hpcms\controller\Login@index',
            'method'        => 'post',
        ],
        [
            'url'           => '/hangpu8/v1.user',
            'namespace'     => '\hangpu8\hpcms\controller\Publics@user',
            'method'        => 'get',
        ],
        [
            'url'           => '/hangpu8/v1.getMenu',
            'namespace'     => '\hangpu8\hpcms\controller\Publics@getMenu',
            'method'        => 'get',
        ],
        [
            'url'           => '/hangpu8/v1.cacheMenu',
            'namespace'     => '\hangpu8\hpcms\controller\Publics@cacheMenu',
            'method'        => 'get',
        ],
        [
            'url'           => '/hangpu8/v1.site',
            'namespace'     => '\hangpu8\hpcms\controller\Index@site',
            'method'        => 'get',
        ],
        [
            'url'           => '/hangpu8/v1.Structure/index',
            'namespace'     => '\hangpu8\hpcms\controller\Structure@index',
            'method'        => 'get',
        ],
        [
            'url'           => '/hangpu8/v1.Structure/add',
            'namespace'     => '\hangpu8\hpcms\controller\Structure@add',
            'method'        => 'get',
        ],
        [
            'url'           => '/hangpu8/v1.Structure/add',
            'namespace'     => '\hangpu8\hpcms\controller\Structure@add',
            'method'        => 'post',
        ],
        [
            'url'           => '/hangpu8/v1.Structure/del',
            'namespace'     => '\hangpu8\hpcms\controller\Structure@del',
            'method'        => 'delete',
        ],
    ],
];